#include <stdio.h>
/**
* @file         
* @brief		字符串存储两种方式及遍历（打印所有元素）.
* @details	    验证C语言在string方面的特性.
* @author		conkty@126.com
* @date		    2023
* @version	    v0.1
* @par 更新记录:         
*	v0.1: 初建\n
*/

int main()
{
    char *s1 = "Hello World!";

    //*(s1 + 2) = 'Y';
    printf("%s\n", s1);

    while (*s1 != '\0')
    {
        printf("%c ", *s1++);
    }
    printf("\n");

    char s2[] = "My World!";
    s2 [2] = '=';
    printf("%s\n", s2);

    return 0;
}